package com.zjb.demo.system.domain;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serial;
import java.io.Serializable;

/**
 * 一般附件对象
 * @author 庄佳彬
 * @since 2023/12/27 13:12
 */
@ApiModel(value = "CommonBizFile对象")
@Table(value = "common_biz_file")
public class CommonBizFile implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Column(value = "id")
    @ApiModelProperty(value = "文件ID")
    @Id(keyType = KeyType.Generator,value = KeyGenerators.flexId)
    private Long id;

    @Column(value = "main_id")
    @ApiModelProperty(value = "主表id")
    private Long mainId;

    @Column(value = "name")
    @ApiModelProperty(value = "文件名称")
    private String name;

    @Column(value = "location")
    @ApiModelProperty(value = "文件地址")
    private String location;

    @Column(value = "type")
    @ApiModelProperty(value = "文件类型")
    private String type;

    @Column(value = "bizType")
    @ApiModelProperty(value = "业务类型")
    private String bizType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
